<template>
  <div class="header">
    <div class="header-left" @click="$router.push('/cate')">
      <van-icon class-prefix="icon" size="24" name="fenlei"></van-icon>
      <span>分类</span>
    </div>
    <div class="header-right" @click="$router.push('/search')">
      <van-icon class-prefix="icon" name="sousuo"></van-icon>
      <span>搜索鲜花/蛋糕</span>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.header{
  display: flex;
  height: 50px;
  background-color: rgb(12, 240, 228);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  align-items: center;
  font-size: 12px;
  color: #fff;
  z-index: 10;
  &-left{
    display: flex;
    flex-direction: column;
    padding: 0 10px;
  }
  &-right{
    height: 30px;
    background-color:rgba(255,255,255,.4);
    flex: 1;
    margin: 0 15px 0 10px;
    display: flex;
    align-items: center;
    border-radius: 15px;
    .icon{
      margin: 0 5px 0 10px;
    }
  }
}
</style>
